<?php
// connect
require 'connect.php';
mysql_select_db("lyubishchev", $con);
$starttime = time();
$endtime = time();

$sql = "INSERT INTO Log (start, end, description)
VALUES
(FROM_UNIXTIME($starttime), FROM_UNIXTIME($endtime), '$_POST[description]')";
if (!mysql_query($sql, $con)) {
	echo "Error: " . mysql_error();
}
// close db
mysql_close($con);

echo "ok";
?>